﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WorkLogMind.aspx.cs" Inherits="FantastPlatform.Community.UI.Message.WorkLogMind" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
     <script type="text/javascript">
         var type = "<%=Type %>";
         var wlm = new FantastPlatform.UI.WorkLogGrid({
             renderTo: 'wlm_div',
             url: '../Service/WorkLog.aspx?Action=SearchPrompt',
             border: false,
             width: tabs.getInnerWidth() - 2,
             height: tabs.getInnerHeight() - 2,
             type: type,
             tbar: [{
                 text: '发表新日志',
                 iconCls: 'add',
                 tooltip: {
                     text: '发表新日志',
                     title: '发表日志',
                     autoHide: true
                 },
                 handler: function () { wlm.onAddWorkLogGridClick(); }
             }, '-', {
                 text: '编辑',
                 iconCls: 'edit',
                 tooltip: {
                     text: '选择要编辑的日志',
                     title: '编辑日志',
                     autoHide: true
                 },
                 handler: function () { wlm.onEditWorkLogGridClick(); }
             }, '-', {
                 text: '删除',
                 iconCls: 'delete',
                 tooltip: {
                     text: '删除选中的日志',
                     title: '删除日志',
                     autoHide: true
                 },
                 handler: function () { wlm.onDeleteWorkLogGridClick(); }
             }, '-', {
                 text: '查看回复',
                 iconCls: 'Details',
                 tooltip: {
                     text: '选择要查看的日志',
                     title: '查看日志',
                     autoHide: true
                 },
                 handler: function () { wlm.onDetailsWorkLogGridClick(); }
             }, '-', {
                 text: '查询',
                 iconCls: 'search',
                 tooltip: {
                     text: '按照条件查询日志',
                     title: '查询日志',
                     autoHide: true
                 },
                 handler: function () { wlm.onSearchClick(); }
             }, '-', {
                 text: '刷新',
                 iconCls: 'updata',
                 tooltip: {
                     text: '重新更新列表内容',
                     title: '列表刷新',
                     autoHide: true
                 },
                 handler: function () { wlm.onUpdataWorkLogGridClick(); }
             }]
         });
         wlm.addListener('rowdblclick', function () { wlm.onEditWorkLogGridClick(); });
         wlm.onUpdataWorkLogGridClick();
    </script>
</head>
<body>
    <div id="wlm_div">
    
    </div>
</body>
</html>
